//
// Created by mio on 25-5-9.
//

#ifndef LOGINSERVER_H
#define LOGINSERVER_H
#include "TcpClient.h"
#include "../Net/TcpServer.h"


class LoginServer : public TcpServer
{
public:
    static std::shared_ptr<LoginServer> Create(EventLoop* eventloop);
    ~LoginServer();

private:
    LoginServer(EventLoop* eventloop);
    TcpConnectionPtr OnConnect(int fd) override;

private:
    TimerId id_;
    EventLoop* loop_;
    std::unique_ptr<TcpClient> client_;
};

#endif //LOGINSERVER_H